package io;
import java.io.*;

/**
 * @author IT枫斗者
 * @ClassName FileDemo01.java
 * @From www.javatiaozao.com
 * @Description
 */
public class FileDemo01 {
    public static void main(String[] args) throws IOException {
        //File(String parent,String child):从父路径字符串和子路径字符串创建一个新的File实例对象
        File file = new File("E:\\tiaozaoclass", "test.java");
        System.out.println(file);

        //File(String pathname):通过指定的路径创建实例
        File file1 = new File("test.java");//路径：\  多一个 是转义
        System.out.println(file1);
        //File(File parent,String child):从父抽象路径名和子路径字符串创建新的File实例
        File parent = new File("E:\\tiaozaoclass\\fileDemo");
        File file2 = new File(parent, "java.txt");
        System.out.println(file2);
    }


}
